/**
 * @description Model Manifest
 *
 * @author Xiongmao
 */

var db = require('../db');

const TicketLog = db.model('TicketLog', {
    tableName: 'tickets_logs',
    hasTimestamps: true,

    parent() {
        return this.belongsTo('Type', 'parent_id');
    },

    type() {
        return this.belongsTo('Type', 'type_id');
    }
});

module.exports = TicketLog;